package org.ichamigua.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.ichihamigua.common.framework.entity.Result;
import org.ichihamigua.common.user.dto.UpdateAvatarLogDto;
import org.ichihamigua.common.user.entity.UserEntity;
import org.ichihamigua.common.user.entity.UserUpdateAvatarLogEntity;

public interface UserUpdateAvatarLogService extends IService<UserUpdateAvatarLogEntity> {


    long countMonthAvatarUpdate(Long userId);

    boolean addLog(Long userId, String url);

    Result<Page> getAvatar(int page, int pageSize, long id);


    Result<?> deleteBeforeAvatar(Long userId, Long avatarId);
}
